package com.sc.service.impl;

import com.sc.mapper.UtilMapper;
import com.sc.service.UtilService;
import com.sc.util.FileUpLoad;
import com.sc.vo.AddFloorVo;
import com.sc.vo.HouseTreeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @Description:
 * @Author: Rui
 * @Date: 2024/11/25 9:47
 */
@Service
public class UtilServiceImpl implements UtilService {
    @Autowired
    private UtilMapper utilMapper;


    @Override
    public List<AddFloorVo> getFloorVo() {
        return utilMapper.getFloorVo();
    }

    @Override
    public List<HouseTreeVo> getHouseTree() {
        return utilMapper.getHouseTree();
    }

    @Override
    public String uploadPic(MultipartFile file) throws IOException {
        return FileUpLoad.upLoad(file);
    }
}
